package sw6.xmlvalidator.issues;

/**
 * Representation of a Warning. Used to represent
 * a warning in the check of ones settings.xml file.
 * @author Lasse
 */
public class Warning extends Issue implements Comparable<Warning>{

	/**
	 * Warning constructor.
	 * @param msg Warning message.
	 * @param lineNumber Linenumber reference to the warning.
	 */
	public Warning(String msg, int lineNumber) {
		super(msg, lineNumber);
	}

	public int compareTo(Warning o) {
		return this.getLineNumber() - o.getLineNumber();
	}
}
